//
//  HView.m
//  HMusicPlayer
//
//  Created by Hament on 14/9/9.
//  Copyright (c) 2014年 HJ. All rights reserved.
//

#import "HView.h"

@implementation HView



-(void)awakeFromNib {
    


    
}


- (id)initWithFrame:(NSRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code here.
    }
    return self;
}


-(id)initWithCoder:(NSCoder *)aDecoder {
    self=[super initWithCoder:aDecoder];
    
    if (self) {
        
    }
    return self;
}


- (void)drawRect:(NSRect)dirtyRect
{
    //    //自定义描绘
    if (self.fillBackGround) {
        self.fillBackGround(dirtyRect);
    }
    [super drawRect:dirtyRect];
    
    // Drawing code here.
}


- (NSView *)hitTest:(NSPoint)aPoint{
    
    if (self.disableTouch) {
       return nil;
    } else {
        
        NSView *view = [super hitTest:aPoint];
        return view;
    }
    
    return nil;
    
}



@end
